//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using CommunityServer.Components;
using CommunityServer.Controls;
using CommunityServer.Galleries.Components;

namespace CommunityServer.Galleries.Controls
{
	/// <summary>
	/// Summary description for InLinePictureEditor.
	/// </summary>
	public class InLinePictureTextEditor : InlineTextEdit
	{
		public InLinePictureTextEditor()
		{
		
		}

        protected override bool CanUserEdit
        {
            get
            {
                Gallery g = Galleries.GetGallery();
                if(g != null)
                {
                    return Permissions.ValidatePermissions(g,Permission.Post,CSContext.Current.User);
                }

                return false;
            }
        }

	}
}
